<template>
   <div>
    <h1>书籍：</h1>
    <p>count:{{count}}</p>
  </div>
</template>

<script setup>
import {ref} from "vue";

let count = ref(8);

function changeCount(){
    count.value++;
}

defineExpose({
    count,changeCount
})


</script>

<style scoped>

</style>